// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "refactor/common-refactor.scss" as deprecated;
@use "../../../sidebar/common/sidebar.scss" as sidebar;

.boolean-options {
  @include sidebar.option-grid-structure;
  height: var(--sp-xxxl);
}

.bool-group {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / span 4;
}

.flatten-button {
  @extend .button-tertiary;
  height: deprecated.$s-32;
  width: deprecated.$s-32;
  border-radius: deprecated.$br-8;
  grid-column: 5 / span 1;
  --flatten-icon-foreground-color: var(--icon-foreground);

  &.disabled {
    cursor: default;
    --flatten-icon-foreground-color: var(--button-foreground-color-disabled);

    &:hover {
      background-color: var(--panel-background-color);
      --flatten-icon-foreground-color: var(--button-foreground-color-disabled);
    }
  }
}

.flatten-icon {
  @extend .button-icon;
  stroke: var(--flatten-icon-foreground-color);
}

.boolean-radio-btn {
  background-color: transparent;
  gap: var(--sp-xs);
}
